import request from '@/utils/request'

// 查询经办人审批列表
export function listJingbanrenCertificate(query) {
  return request({
    url: '/exam/jingbanrenCertificate/list',
    method: 'get',
    params: query
  })
}

// 查询经办人审批详细
export function getJingbanrenCertificate(id) {
  return request({
    url: '/exam/jingbanrenCertificate/' + id,
    method: 'get'
  })
}

// 新增经办人审批
export function addJingbanrenCertificate(data) {
  return request({
    url: '/exam/jingbanrenCertificate',
    method: 'post',
    data: data
  })
}

// 修改经办人审批
export function updateJingbanrenCertificate(data) {
  return request({
    url: '/exam/jingbanrenCertificate',
    method: 'put',
    data: data
  })
}

// 删除经办人审批
export function delJingbanrenCertificate(id) {
  return request({
    url: '/exam/jingbanrenCertificate/' + id,
    method: 'delete'
  })
}


// 经办人提交审批
export function jingbanrenApprovalSubmitCertificate(examPassCertificate) {
  return request({
    url: '/exam/jingbanrenCertificate/submit',
    method: 'post',
    data: examPassCertificate
  })
}